Comparison operators compare two expressions. The result is returned as a Boolean expression that determines if the comparison is True (-1) or False (0).
比較演算子は、2 つの表式の比較を行う際に使用します。比較の結果は、True (-1) ないし False (0) で表されるブール型表式として返されます。
Result = Expression1 { = | < | > | <= | >= } Expression2
Result = Expression1 { = | < | > | <= | >= } Expression2
Result: Boolean expression that specifies the result of the comparison (True, or False)
Result: 比較結果 (True ないし False) を格納するブール型表式。
Expression1, Expression2: Any numeric values or strings that you want to compare.
Expression1、Expression2: 比較する数値ないし文字列。
= : Equal to
= : 等しい
< : Less than
< : より小さい
> : Greater than
> : より大きい
<= : Less than or equal to
<= : 以下
>= : Greater than or equal to
>= : 以上
<> : Not equal to
<> : 等しくない
Sub ExampleUnequal
Sub ExampleUnequal
DIM sFile As String
DIM sFile As String
DIM sRoot As String REM ' Root directory for file in and output
DIM sRoot As String REM 入出力ファイルのルートディレクトリ
sRoot = "c:\"
sRoot = "c:\"
sFile = Dir$( sRoot ,22)
sFile = Dir$( sRoot ,22)
If sFile <> "" Then
If sFile <> "" Then
Do
Do
Msgbox sFile
Msgbox sFile
sFile = Dir$
SFile = Dir$
Loop Until sFile = ""
Loop Until sFile = ""
End If
End If
End sub
End sub